package util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MxDate {
    public static void main(String[] args) throws Exception {
        Date date = new Date();
        System.out.println(date.getTime());

        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date1 = format.parse("2018-02-06 18:00:00");
        System.out.println(date1.getTime());
    }
}
